package com.greatwall.hip.cms.shiro;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author TianLei
 * @version V1.0
 */
@Data
@AllArgsConstructor
public class JWTToken implements AuthenticationToken {

    private String loginName;

    private String token;

    @Override
    public Object getPrincipal() {
        return loginName;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
